<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>注册</title>
        <link rel="shortcut icon" href="/public/img/logo.ico" type="image/x-icon" >
        <link rel="stylesheet" type="text/css" href="/public/css/registAndLogin/details.css"/>
    </head>
    <body>
        <div id="container">
            <form action="@{B.register}" method="post" id="login" ajax>
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td colspan="2"><img src="/public/img/login/logo5.png"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="title">注册通行证&nbsp;成为橡木侠</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="text" placeholder="手机号" class="input" name="mobile"/>
                            <label class="yanzheng"></label>
                           <!-- <input type="button"  id="fasong" value="发送验证码" /> -->
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"><input type="text" placeholder="验证码" class="input" name="valcode"/></td>
                    </tr>

                    <tr>
                        <td colspan="2">
                            <input type="text" placeholder="用户名" class="input" name="nickname"/>
                        	<label class="yanzheng">aaa</label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="password" placeholder="密码" class="input eye" name="passwd" oniput="checklength();"/>
                        	<label class="yanzheng">请输入8位数密码</label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="password" placeholder="确认密码" class="input eye" id="passwd2"/>
                            <label class="yanzheng">aaa</label>
                        </td>
                    </tr>

                    <tr>
                        <td class="c"><input type="checkbox"/> &nbsp;我已阅读并接受《用户协议》</td>
                    </tr>
                    <tr>
                        <td colspan="2"><input type="submit" value="注册" class="login"/></td>
                    </tr>
                    <tr>
                        <td colspan="2" class="d"><a href="@{App.login}">已有账号，直接登录</a></td>
                    </tr>
                </table>	
            </form>

        </div>
        <script type="text/javascript" src="/public/js/jquery-1.11.3.js" ></script>
       <!-- <script src="/public/js/jquery.form.min.js" type="text/javascript" charset="utf-8"></script>-->
        <script src="/public/js/xjp.js" type="text/javascript" charset="utf-8"></script>

        <script>
            $(function () {
               <!-- $("#fasong").click(function () {
                    var mobile = $("input[name='mobile']").val();
                 
                    if (mobile.trim() != "手机号" && mobile.trim() != "") {
                        GetNumber();
                        $.post("@{B.validateMobileForNewUser}", {"mobile": mobile})
                                .success(function (ret) {
                                    console.log(ret);
                                });
                    } else {
                        $(this).attr("disabled", "disabled");
                    }
                });

                var count = 60;
                function GetNumber() {
                    $("#fasong").attr("disabled", "disabled");
                    $("#fasong").val("重新发送(" + count + ")")
                    count--;
                    if (count > 0) {
                        setTimeout(GetNumber, 1000);
                    } else {
                        $("#fasong").val("点击获取验证码");
                        $("#fasong").attr("disabled", "");
                    }
                }
                -->
             
                
              
            });
            
        </script>
    </body>
</html>